package fhp.hlhj.giantfold.javaBean;

import java.util.List;

/**
 * author: FHP
 * data: on 2017\12\4 0004 15:33
 * E-Mail: 103945089@qq.com
 */

public class ErroBean {

    /**
     * error : {"message":"422 Unprocessable Entity","errors":[{"field":"username","code":"用户名长度需介于6-16位字符之间"}],"status_code":422}
     */

    private ErrorBean error;

    public ErrorBean getError() {
        return error;
    }

    public void setError(ErrorBean error) {
        this.error = error;
    }

    public static class ErrorBean {
        /**
         * message : 422 Unprocessable Entity
         * errors : [{"field":"username","code":"用户名长度需介于6-16位字符之间"}]
         * status_code : 422
         */

        private String message;
        private int status_code;
        private List<ErrorsBean> errors;

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }

        public int getStatus_code() {
            return status_code;
        }

        public void setStatus_code(int status_code) {
            this.status_code = status_code;
        }

        public List<ErrorsBean> getErrors() {
            return errors;
        }

        public void setErrors(List<ErrorsBean> errors) {
            this.errors = errors;
        }

        public static class ErrorsBean {
            /**
             * field : username
             * code : 用户名长度需介于6-16位字符之间
             */

            private String field;
            private String code;

            public String getField() {
                return field;
            }

            public void setField(String field) {
                this.field = field;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }
        }
    }
}
